﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using System.Diagnostics;

namespace GenerateLoopStringTool
{
    public class Tool : CodeMonkeyToolApi.AbstractCodeMonkeyTool
    {
        private Form mainForm;

        public Tool()
        {
        }

        public override string GetToolName(System.Globalization.CultureInfo culture)
        {
            if (culture.Name == "zh-CN")
                return "生成循环字符串";
            else
                return "Generate Loop String";
        }

        //Metro UI默认颜色
        private Color MetroUIDefaultColor = Color.FromArgb(38, 160, 218);

        public override System.Drawing.Image GetToolIcon(System.Globalization.CultureInfo culture)
        {
            return null;
        }

        public override string GetToolType(System.Globalization.CultureInfo culture)
        {
            if (culture.Name == "zh-CN")
                return "字符串工具";
            else
                return "String Tools";
        }

        public override string GetAuthorName(System.Globalization.CultureInfo culture)
        {
            return "aaa";
        }

        public override string GetAuthorEmail()
        {
            return "scbeta@qq.com";
        }


        public override void OnCultureChanged(System.Globalization.CultureInfo culture)
        {
            //mainForm.Text = culture.NativeName;
        }

        public override void Start()
        {
            mainForm = new MainForm();
            mainForm.Show();
        }
    }
}
